package com.lsc.www.day09;

public class ExceptionTest {
    public static void main(String[] args) {
        /*以下程序出现错误
        * Exception in thread "main" java.lang.ArithmeticException: / by zero
	at com.lsc.www.day09.ExceptionTest.main(ExceptionTest.java:7)*/
        int a = 10;
        int b = 0; //除数不能为0
        int c = a/b;

        System.out.println(c);
    }
}
